<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS对象_Array</title>

  <script>

      // Array 对象
      // 创建
      var arr = new Array(1,2,3);
      var arr2 = new Array(5);
      var arr3 = [1,2,3,4,5];

      var arr4 = new Array();

      document.write(arr + "<br>");
      document.write(arr2 + "<br>");
      document.write(arr3 + "<br>");
      document.write(arr4 + "<br>");

      var arr5 = [1,"abc",true];
      document.write(arr5 + "<br>");

      document.write(arr5[0] + "<br>");
      document.write(arr5[1] + "<br>");
      document.write(arr5[2] + "<br>");

      document.write(arr5[3] + "<br>");


  </script>

</head>
<body>

</body>
</html>